package com.fh.service.system.welcome;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fh.dao.DaoSupport;
import com.fh.entity.Page;

import com.fh.util.PageData;


@Service("welcomeService")
public class WelcomeService {

	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	//======================================================================================
	
	
	
	public PageData findWelcomeById(PageData pd)throws Exception{
		return (PageData)dao.findForObject("WelcomeMapper.findWelcomeById", pd);
	}
	
	/*
	* 保存
	*/
	public void saveWelcome(PageData pd)throws Exception{
		dao.save("WelcomeMapper.saveWelcome", pd);
	}
	/*
	* 修改
	*/
	public void editWelcome(PageData pd)throws Exception{
		dao.update("WelcomeMapper.editWelcome", pd);
	}
	/*
	* 删除
	*/
	public void deleteWelcome(PageData pd)throws Exception{
		dao.delete("WelcomeMapper.deleteWelcome", pd);
	}
	/**
	 *查
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public List<PageData> listAllWelcome(Page page)throws Exception{
		return (List<PageData>) dao.findForList("WelcomeMapper.listAllWelcome", page);
	}
	
	
	
	
}

